import akshare as ak
import sqlite3

stock_sse_summary_df = ak.stock_sse_summary()
stock_szse_summary_df = ak.stock_szse_summary(date="20250217")
stock_szse_area_summary_df = ak.stock_szse_area_summary(date="202501")

with sqlite3.connect("example.db") as conn:
    stock_sse_summary_df.to_sql("stock_sse_summary_df",conn,if_exists="replace",index=False)
with sqlite3.connect("example.db") as conn:    
    stock_szse_summary_df.to_sql("stock_szse_summary_df",conn,if_exists="replace",index=False)
with sqlite3.connect("example.db") as conn:
    stock_szse_area_summary_df.to_sql("stock_szse_area_summary_df",conn,if_exists="replace",index=False)
    
